<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sql_rt" uri="http://java.sun.com/jstl/sql_rt" %>
<% String adminName = request.getParameter("adminName");%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>用户增加</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="css/addPerson.css">
    <script type="text/javascript" src="<%=basePath%>/jslib/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/register/verify.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/register.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/register/verify.js"></script>
    <link type="text/css" rel="stylesheet" href="css/smartmenu.css">
    <script type="text/javascript" src="<%=basePath%>/jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/Menu.js"></script>
</head>

<body onload="document.register.userName.focus();">
<%@ include file="/page/share/menu.jsp" %>
<div id="content">
    <marquee style="width:796px;margin-left:2%;color:#409fcd;">若增加记录的姓名已存在，则添加失败，有*的必填</marquee>
    <form name="Regform" id="Regform" action="Person!addPerson.action" method="post">
        <table width="830" cellpadding="0" cellspacing="0">
            <tr>
                <td width="140" align="right">用户名：</td>
                <td width="300"><input type="text" name="userName" id="Tname" class="input" onblur="Cname()"/></td>
                <td width="383" align="left">
                    <div class="STYLE2" id="Rname">请输入您的昵称</div>
                </td>
            </tr>
            <tr>
                <td align="right">密码：</td>
                <td><input type="password" name="password" id="Tpwd1" class="input" onblur="Cpwd1()"/></td>
                <td align="left">
                    <div class="STYLE2" id="Rpwd1">请输入您的密码</div>
                </td>
            </tr>
            <tr>
                <td align="right">密码确认：</td>
                <td><input type="password" name="password" id="Tpwd2" class="input" onblur="Cpwd2()"/></td>
                <td align="left">
                    <div class="STYLE2" id="Rpwd2">重新输入密码，要求两密码保持一致</div>
                </td>
            </tr>
            <tr>
                <td align="right">邮箱地址：</td>
                <td><input type="text" name="email" id="Temail" class="input" onblur="Cemail()"/></td>
                <td align="left">
                    <div class="STYLE2" id="Remail">请提供合法有效的电子邮箱地址</div>
                </td>
            </tr>
            <tr>
                <td align="right">手机号码：</td>
                <td><input type="text" name="phone" id="Ttel" class="input" onblur="Ctel()"/></td>
                <td align="left">
                    <div class="STYLE2" id="Rtel">请输入您的手机号</div>
                </td>
            </tr>
            <tr>
                <td align="right">
                    权&nbsp&nbsp&nbsp&nbsp限：
                </td>
                <td>
                    <label>
                        <select name="authority">
                            <option value="ROLE_STAFF">员工</option>
                            <option value="ROLE_USER" selected="selected">普通用户</option>
                            <option value="ROLE_MANAGE">经理</option>
                        </select>
                    </label>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="submit" value="提交" id="stb" onfocus="this.blur();" onclick="return Result();" class="btn"/>
                </td>

            </tr>
        </table>
    </form>
</div>

<br/>

<div id="bottom">
    <ul>
        <li>
            联系我们：
            <a href="mailto:willsonz@qq.com?subject=KTV综合管理系统">willsonz@qq.com</a>
        </li>
    </ul>
    <ul>
        <li>
            ©&nbsp;Made By Cloud Team.
        </li>
    </ul>
</div>
</body>
</html>
